//引入axios
import request from '@/utils/request';

//一级分类的接口函数
//GET /admin/product/getCategory1
export const  reqGetCategory1 = ()=>request({url:`/admin/product/getCategory1`,method:'get'});

//二级分类的接口函数
// GET /admin/product/getCategory2/{category1Id}
export const reqGetCategory2 = (category1Id)=>request({url:`/admin/product/getCategory2/${category1Id}`,method:'get'})

//三级分类的接口函数
export const reqGetCategory3 = (category2Id)=>request({url:`/admin/product/getCategory3/${category2Id}`,method:'get'})

